package cn.pengyinrui.pethome.dept.mapper;

import cn.pengyinrui.pethome.dept.domain.Department;
import cn.pengyinrui.pethome.dept.query.DepartmentQuery;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentMapper {
    // 查找单个
    Department findOne(Long id);
    // 查找全部
    List<Department> findAll();
    // 分页查询，高级查询
    List<Department> findAllByQuery(DepartmentQuery query);
    // 分页查询，数据条数
    Long findAllByQueryCount(DepartmentQuery query);
    // 增加
    void add(Department department);
    // 修改
    void update(Department department);
    // 删除
    void delete(long id);
}
